package day0411;

public class Test06 {
    public static void main(String[] args) {
        int[] a = {5, 11, 15, 24, 36, 47, 59, 66};
        int length = a.length;
        for (int i = 0; i < length / 2; i++) {
            int temp = a[i];
            a[i] = a[length - 1 - i];
            a[length - 1 - i] = temp;
        }
        for (int num : a) {
            System.out.print(num + " ");
        }
    }
}